<?php

namespace AdminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * AuthContentType
 *
 * @ORM\Table(name="auth_content_type", uniqueConstraints={@ORM\UniqueConstraint(name="idx_auth_content_type_app_label_model", columns={"app_label", "model"})})
 * @ORM\Entity(repositoryClass="AdminBundle\Repository\AuthContentTypeRepository")
 */
class AuthContentType
{
    /**
     * @var string
     *
     * @ORM\Column(name="app_label", type="string", length=100, nullable=false)
     */
    private $appLabel;

    /**
     * @var string
     *
     * @ORM\Column(name="model", type="string", length=100, nullable=false)
     */
    private $model;

    /**
     * @var string
     *
     * @ORM\Column(name="note", type="string", length=45, nullable=false)
     */
    private $note = '';

    /**
     * @var boolean
     *
     * @ORM\Column(name="content_type", type="boolean", nullable=false)
     */
    private $contentType = '0';

    /**
     * @var boolean
     *
     * @ORM\Column(name="is_enabled", type="boolean", nullable=false)
     */
    private $isEnabled = '0';

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="ctime", type="datetime", nullable=false)
     */
    private $ctime = 'CURRENT_TIMESTAMP';

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;



    /**
     * Set appLabel
     *
     * @param string $appLabel
     *
     * @return AuthContentType
     */
    public function setAppLabel($appLabel)
    {
        $this->appLabel = $appLabel;

        return $this;
    }

    /**
     * Get appLabel
     *
     * @return string
     */
    public function getAppLabel()
    {
        return $this->appLabel;
    }

    /**
     * Set model
     *
     * @param string $model
     *
     * @return AuthContentType
     */
    public function setModel($model)
    {
        $this->model = $model;

        return $this;
    }

    /**
     * Get model
     *
     * @return string
     */
    public function getModel()
    {
        return $this->model;
    }

    /**
     * Set note
     *
     * @param string $note
     *
     * @return AuthContentType
     */
    public function setNote($note)
    {
        $this->note = $note;

        return $this;
    }

    /**
     * Get note
     *
     * @return string
     */
    public function getNote()
    {
        return $this->note;
    }

    /**
     * Set contentType
     *
     * @param boolean $contentType
     *
     * @return AuthContentType
     */
    public function setContentType($contentType)
    {
        $this->contentType = $contentType;

        return $this;
    }

    /**
     * Get contentType
     *
     * @return boolean
     */
    public function getContentType()
    {
        return $this->contentType;
    }

    /**
     * Set isEnabled
     *
     * @param boolean $isEnabled
     *
     * @return AuthContentType
     */
    public function setIsEnabled($isEnabled)
    {
        $this->isEnabled = $isEnabled;

        return $this;
    }

    /**
     * Get isEnabled
     *
     * @return boolean
     */
    public function getIsEnabled()
    {
        return $this->isEnabled;
    }

    /**
     * Set ctime
     *
     * @param \DateTime $ctime
     *
     * @return AuthContentType
     */
    public function setCtime($ctime)
    {
        $this->ctime = $ctime;

        return $this;
    }

    /**
     * Get ctime
     *
     * @return \DateTime
     */
    public function getCtime()
    {
        return $this->ctime;
    }

    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }
}
